#ifndef STARTTYPEDIALOG_H
#define STARTTYPEDIALOG_H

#include <QDialog>

namespace Ui {
class StartTypeDialog;
}

class StartTypeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit StartTypeDialog(int styleId,QWidget *parent = 0);
    ~StartTypeDialog();

    void initialDisplayStyle(int styleId);


    void updateView(int type);

    /**
     * @brief updateView        关机过程
     * @param msg
     */
    void updateView(QString msg);

    void updateViewShutDown(QString msg);

    void changeLanguage();

signals:
    /**
     * @brief setStartType      设置类型
     * @param type
     */
    void setStartTypeSignal(int type);

    void setShutDownSiganl();

    void controlShutDownEnable(bool enable);


private slots:
    void on_sureBtn_clicked();

    void on_cancelBtn_clicked();

    void on_button_enableShutDown_clicked();

    void on_button_disableShutDown_clicked();

    void on_button_shutDownHmi_clicked();

private:
    Ui::StartTypeDialog *ui;
};

#endif // STARTTYPEDIALOG_H
